package gugga.common
{
	public class BaseEnum
	{
		private var mName : String;
		private var mOrderIndex : Number;
	
		public function BaseEnum(aName : String, aOrderIndex : Number)
		{
			mName = aName;
			mOrderIndex = aOrderIndex;
		}
		
		public function toString() : String
		{
			return mName;
		}
		
		public function valueOf() : Number
		{
			return mOrderIndex;
		}
				
		public static function parse(aType : Class, aValue : String) : Object
		{
			return aType[aValue];
		}
	}
}